package qzbook.cn.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import qzbook.cn.pojo.Role;

import java.util.List;

/**
 * @Description
 * @Author zc
 * @Date 2020/11/13 上午12:21
 */
@Repository
public interface RoleDao {

    Role getRole(Long id);

    int deleteRole(Long id);

    int insertRole(Role role);

    int updateRole(Role role);

    List<Role> findRoles(@Param("roleName")String roleName,@Param("note")String note);

}
